package com.xyz;

public class Disc {
	private Film film;
	private DiskType diskType;
	private String info;
	
	public void setInfo(String info) {
		this.info = info;
	}

	public Disc(Film film, DiskType diskType) {
		super();
		this.film = film;
		this.diskType = diskType;
		
		String res="";
		
		res+=" Title: ";
		res+=film.getTitle();
		res+=" Year: ";
		res+=film.getYear();
		res+=" Genres: ";
		for (String g: film.getGenres()){
			res+=g;
			res+=", ";
		}
		res+=" DiscType: ";
		res+=this.diskType;		
		info=res;
	}
	
	public String getInfo() {
		return info;
	}
	
	public Film getFilm() {
		return film;
	}
	public void setFilm(Film film) {
		this.film = film;
	}
	public DiskType getDiskType() {
		return diskType;
	}
	public void setDiskType(DiskType diskType) {
		this.diskType = diskType;
	}
	
}
